package cn.edu.scau.cmi.huangxiaodong.exercise10;
import java.io.*;

public class FileAccept implements FilenameFilter {

	private String ext;
	public void setExt(String s) {
		ext = s;
	}

	public boolean accept(File dir, String name) {
		return name.endsWith(ext);
	}

}
